package cn.gson.crm.model.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import cn.gson.crm.model.pojo.Purchaseticket;

public interface PurchaseTicketDao extends CrudRepository<Purchaseticket, Long> {
	@Query("from Purchaseticket p order by p.id desc")
	public List<Purchaseticket> getAllPt(Pageable pageable);
}
